<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<button id="button">test</button>
<script src="https://cdn.staticfile.org/jquery/2.0.0/jquery.min.js"/>
<script>
    $('#button').click(function (){
        $.get('http://localhost:8080/fuxing/ticket2',function (data){
            console.log(JSON.stringify(data))
        })
    })
</script>
</body>
</html>